/**
 * Mise en oeuvre de Tour.h
 *
 * @file Tour.cxx
 */

// A besoin de la declaration de la classe
#include "Tour.h"
#include <iostream>
#include <cstdlib>

using namespace std;

Tour::Tour()
{
	//cout << "Tour() - " << this << endl;
}

Tour::~Tour()
{
	//cout << "~Tour() - " << this << endl;
}

bool Tour::mouvementValide(Echiquier *e, int x, int y)
{
	return this->mouvementAutorise(e, x, y) && (this->x() == x) ^ (this->y() == y);
}
